#ifndef DEBUG_H
#define DEBUG_H
#include <QTime>
#include <QThread>

#define ENTER_WITH_IME(str)    qDebug()<<str<<"begin"<<QThread::currentThreadId(); \
                                QTime time; \
                                time.start();

#define EXIT_PRINT_TIME(str) qDebug()<<str<<"exit"<<time.elapsed()/1000.0<<QThread::currentThreadId(); \

#endif // DEBUG_H

